package com.deyuanyun.pic.docmger.controller.dto;

import com.deyuanyun.pic.common.util.StringUtils;
import com.deyuanyun.pic.docmger.domain.DocStandard;

/**
 *  文档中心---技术标准扩展DTO
 *  @author axiao(xj08.dream@gmail.com)
 *  @date 2016-11-14
 *  @version 1.0
 *  Histroy: [修改人][时间][描述]
 */
public class DocStandardDTO extends DocStandard {

    private String fileRealName; //文件真实名字

    private String attachmentId;//附件id

    private String fileType;//文件类型

    public String getFileRealName() {
        if(StringUtils.isNotEmpty(fileRealName)) {
            fileRealName = fileRealName.substring(0,fileRealName.lastIndexOf('.'));
        }
        return fileRealName;
    }

    public void setFileRealName(String fileRealName) {
        this.fileRealName = fileRealName;
    }

    public String getAttachmentId() {
        return attachmentId;
    }

    public void setAttachmentId(String attachmentId) {
        this.attachmentId = attachmentId;
    }

    public String getFileType() {
        return fileType;
    }

    public void setFileType(String fileType) {
        this.fileType = fileType;
    }
}
